package org.zjx.message.messages;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.zjx.message.AbstractMessage;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class HeartbeatMessage extends AbstractMessage {
    private String workerId; // 新增 workerId 字段

    public HeartbeatMessage(String workerId) {
        this.workerId = workerId;
        setTimestamp(System.currentTimeMillis());
    }

}